<template>
  <div class="container-details-article">
    <div class="group-title">
      <div class="item-title">{{ value.title }}</div>
      <div class="item-other">
        <span class="time">{{ value.release_at }}</span>
        <span class="hit">{{ value.pageviews }}</span>
      </div>
    </div>
    <div v-html="value.content" />
  </div>
</template>

<script>
export default {
  computed: {
    value() {
      console.log(this.$route.params)
      return this.$route.params
    }
  },
  mounted() {
    if (!this.value.title) {
      this.$router.back()
    }
  }
}
</script>

<style lang="less" scoped>
.container-details-article {
  padding: 15px;
  .group-title {
    padding-left: 10px;
    border-left: 8px solid #f45050;
  }
  .item-title {
    font-size: 20px;
  }
  .item-other {
    font-size: 12px;
    color: #aaa;
    span {
      margin-right: 20px;
    }
  }
}
</style>
